package com.shop.loan.model.vo;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.ChoiceType;
import xyz.erupt.annotation.sub_field.sub_edit.VL;

@Erupt(name = "实物发货")
@Getter
@Setter
public class AddLogisticsVo extends HyperModelCreatorBaseVo {


    @EruptField(
            edit = @Edit(
                    title = "快递类型",
                    type = EditType.CHOICE,
                    notNull = true,
                    choiceType = @ChoiceType(
                            vl = {
                                    @VL(label = "顺丰", value = "shunfeng"),
                                    @VL(label = "中通", value = "zhongtong"),
                                    @VL(label = "圆通", value = "yuantong"),
                                    @VL(label = "百世", value = "huitongkuaidi"),
                                    @VL(label = "申通", value = "shentong"),
                                    @VL(label = "韵达", value = "yunda"),
                                    @VL(label = "ems", value = "ems"),
                                    @VL(label = "京东", value = "jd"),
                                    @VL(label = "德邦", value = "debangkuaidi"),
                                    @VL(label = "邮政", value = "youzhengguonei"),
                                    @VL(label = "极兔", value = "jtexpress"),
                            }
                    ))
    )
    private String type;

    @EruptField(
            views = @View(title = "快递订单号"),
            edit = @Edit(title = "快递订单号", notNull = true)
    )
    private String logisticsNumber;


}
